#include "habit.h"

Habit::Habit()
{
    this->title="";
    this->status="";
}

void Habit::setTitle(QString title)
{
    this->title=title;
}

int Habit::getID()
{
    return this->ID;
}

int Habit::getIndex()
{
    return this->index;
}

QString Habit::getStatus()
{
    return this->status;
}

QString Habit::getTitle()
{
    return this->title;
}

Task Habit::getTaskByIndex(int index)
{
    if(index>=0 && index<this->taskList.count())
        return taskList[index];
}
